import { ApiProperty } from '@nestjs/swagger';

export class AttachmentResponseDto {
  @ApiProperty({
    description: 'Unique identifier for the attachment',
    example: '550e8400-e29b-41d4-a716-446655440000',
  })
  id: string;

  @ApiProperty({
    description: 'URL of the file in OBS',
    example: 'https://bucket-name.obs.region.example.com/uploads/1234567890-file.pdf',
  })
  fileUrl: string;

  @ApiProperty({
    description: 'Original file name',
    example: 'my-document.pdf',
  })
  filename: string;

  @ApiProperty({
    description: 'User ID who created this attachment',
    example: '550e8400-e29b-41d4-a716-446655440000',
  })
  createdBy: string;

  @ApiProperty({
    description: 'Creation timestamp',
    example: '2023-01-01T12:00:00Z',
  })
  createdAt: Date;
}
